home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Reference & Presen…tion Library 4 (Reseller)
/
Apple Ref. & Pres. Lib.v4.0.iso
/
1-Reference
/
•ARPL stacks
/
ARPL FeedBack
/
ARPL FeedBack
/
background_2749.txt
< prev
next >
Wrap
Text File
|
1990-05-21
|
8KB
|
320 lines
-- background: 2749 from stack: in
-- bmap block id: 3193
-- flags: 0000
-- background id: 0
-- name: Feedback
-- part 4 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=98 top=51 right=78 bottom=508
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 128
-- text size: 18
-- style flags: 0
-- line height: 24
-- part name: Prompt
-- part 52 (field)
-- low flags: 80
-- high flags: 0007
-- rect: left=4 top=272 right=318 bottom=447
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: System
-- part 53 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=55 top=310 right=338 bottom=97
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Help
----- HyperTalk script -----
on mouseUp
helpHandler
end mouseUp
-- part 57 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=367 top=310 right=338 bottom=409
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Back
----- HyperTalk script -----
on mouseUp
lock screen
pop cd
end mouseUp
-- part 59 (field)
-- low flags: 80
-- high flags: 0007
-- rect: left=2 top=26 right=310 bottom=510
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Tracking
----- HyperTalk script -----
on mouseup
put usertracking() into me
end mouseup
-- part 61 (button)
-- low flags: 80
-- high flags: 2000
-- rect: left=104 top=29 right=41 bottom=116
-- title width / last selected line: 0
-- icon id / first selected line: 20269 / 20269
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Go Away
----- HyperTalk script -----
on mouseUp
global helpMode
lock screen
hide me
hide bg fld "help"
hide bg btn "wiiiiiiiiiiiiiiiiiiiii"
unlock screen
put false into helpMode
end mouseUp
on mouseDown
set cursor to arrow
end mouseDown
-- part 69 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=308 top=310 right=338 bottom=352
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Send
----- HyperTalk script -----
on mouseUp
--// Create AppleLink outbasket document from the info in this stack
set cursor to watch
if field "text" is empty then
answer "You have not created a memo to send yet. Please type something " &"into this scrolling field."
select after text of bg fld "text"
exit mouseup
end if
--// Address information
put "Grabel1" into toAddress
put empty into ccAddress
put "Feedback" into mySubject
--// Text of memo
put "Memo to follow…" & return & return into myText
put field "text" & return & return after myText
--// Get system information
put " ----------------------------------------------------------" & "---------------------" & return after myText
put "System configuration data follows…" & return & return after myText
put sysEnvirons() & return after myText
--// User tracking data
put "Feedback tracking data follows..." & return & return after myText
put userTracking() after myText
--// XCMD below is from Steve Maller, Apple Computer, Inc.
--// it stores message as "SendMe #n" in system folder
--// Assume AppleLink 5.0
makeSendMe5 toAddress, ccAddress, mySubject, myText --// XCMD
if the result is not empty then -- report problem, don't clear old info yet
answer it
exit mouseUp
else -- stored OK, clear out containers
lock screen
put empty into bg fld "Tracking"
put empty into bg fld "Text"
unlock screen with dissolve
end if
end mouseUp
function SysEnvirons
--// Handler to fill out all system environment attributes for
--// tracking information
global xErr,dev1
set cursor to busy
if dev1 then put "Reading system parameters…"
put "Configuration: " & SysEnvironment() & return & return into sysInfo
put "••••• RAM = " & TotalRam()/1024 & "K" & return after sysInfo
if dev1 then put "Getting Heapspace:"
put "••••• Heapspace = " & the heapspace & return & return after sysInfo
set cursor to busy
if dev1 then put "Getting Applications running…"
put "••••• Applications running:" & return after sysInfo
put ApplicationList() & return & return after sysInfo
set cursor to busy
if dev1 then put "Getting INIT Info:"
put "••••• INIT Info:" & return after sysInfo
put putCommas(INITList("detailed")) & return & return after sysInfo
set cursor to busy
if dev1 then put "Getting SCSI Info…"
put "••••• SCSI Info:" & return after sysInfo
repeat with SCSINdx = 0 to 6
set cursor to busy
put SCSIinfo(SCSINdx,"noDialog:xErr") into SCSIdata
if SCSIdata <> empty then
put putCommas (SCSIdata) into SCSIdata
put "SCSI ID #:" && SCSINdx && SCSIdata & return after sysInfo
put empty into xErr
end if
end repeat
if dev1 then put "Getting Monitor Info:"
put return & "••••• Monitor Info:" & return after sysInfo
repeat with MonitorNdx = 1 to MonitorCount()
set cursor to busy
put monitorConfig(MonitorNdx) into MonitorInfo
if MonitorInfo <> empty then put MonitorInfo after sysInfo
end repeat
set cursor to busy
if dev1 then put empty
hide msg
return sysInfo
end SysEnvirons
function UserTracking
global RPUserTracking
put "Apple Electronic Forms,"& "Apple Literature Guide,"& "User Groups DB,"& "Success Stories,"& "Third Party Developer DB,"& "Pres:Apple,"& "Pres:Apple Products,"& "Pres:Markets,"& "Pres:Service&Support,"& "Apple Graphic Library,"& "Apple Graphics Source,"& "Demos:Apple,"& "Demos:3rd Party,"& "Pres:Apple/DEC Intro" into list
put line 18 of cd fld "saveGlobals" into lastDate
put the date into line 18 of cd fld "saveGlobals"
if lastDate is empty then put "00/00/00" into lastDate
put "Last Transmission was: "&lastDate & return & return into hitlist
repeat with n = 1 to the number of items in list
if item n of RPUserTracking is empty then
put 0 into item n of RPUserTracking
end if
put "Map button “"&item n of list&"” received "& item n of RPUserTracking &" hit(s)." & return after hitlist
end repeat
put return & RPUserTracking after hitlist
put empty into RPUserTracking
return hitlist
end userTracking
function putCommas block
repeat until offset (return,block) = 0
set cursor to busy
put "," into char offset(return,block) of block
end repeat
return block
end putCommas
-- part 70 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=7 top=310 right=338 bottom=49
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Quit
----- HyperTalk script -----
on mouseUp
quitHandler
end mouseUp
-- part 71 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=463 top=310 right=338 bottom=505
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Map
----- HyperTalk script -----
on mouseUp
mapHandler
end mouseUp
-- part 72 (field)
-- low flags: 00
-- high flags: 0007
-- rect: left=43 top=79 right=285 bottom=491
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 4
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Text